package cn.edu.xmu.oomall.order.model.vo;

import cn.edu.xmu.oomall.order.constant.Constants;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 优惠活动
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class CouponActivitySimpleVo {
    @ApiModelProperty(value = "活动id")
    private Long id;
    @ApiModelProperty(value = "优惠活动名称")
    private String name;
    @ApiModelProperty(value = "图片链接")
    private String imageUrl;
    @ApiModelProperty(value = "优惠活动名称")
    @JsonFormat(pattern = Constants.DATE_TIME_FORMAT, timezone = "GMT+8")
    private LocalDateTime payTime;
    @ApiModelProperty(value = "活动开始时间")
    @JsonFormat(pattern = Constants.DATE_TIME_FORMAT, timezone = "GMT+8")
    private LocalDateTime beginTime;
    @ApiModelProperty(value = "活动结束时间")
    @JsonFormat(pattern = Constants.DATE_TIME_FORMAT, timezone = "GMT+8")
    private LocalDateTime endTime;
    @ApiModelProperty(value = "优惠券数目，0-不用优惠券")
    private Long quantity;
    @ApiModelProperty(value = "开始领优惠券时间")
    @JsonFormat(pattern = Constants.DATE_TIME_FORMAT, timezone = "GMT+8")
    private LocalDateTime couponTime;
}
